#pragma once
#include "stdafx.h"


class AutoHandle
{
public:
	AutoHandle();
	virtual ~AutoHandle();

	void EraseHandle( HANDLE handle );
	HANDLE GetAutoHandle( unsigned long number = 0 );
	size_t GetSize();
	HANDLE PopHandle();
	long PushHandle( HANDLE handle );

private:
	std::vector<HANDLE> m_autoHandles;
};
